import regeneratorRuntime from '../../../resource/libs/runtime'
import { wxApiPromise } from '../../../common/utils'
import service from '../../../common/service'

Page({
  data: {
    phone: '12345678910',
    balance: 0,
    money: 100,
    money_list: [100, 300, 500, 1000],
    money_input: '',
  },

  moneyInput ({ detail }) {
    this.setData({
      money: Number(detail.value) || 0,
    })
  },

  listTap ({ currentTarget }) {
    let index = currentTarget.dataset.index
    this.setData({
      money: this.data.money_list[index],
    })
  },

  async submit () {
    //
  },
})